/* 比赛相关 */
import request from '@/utils/request.js'

/**
 * 获取所有竞赛粗略信息
 */
export const getAllCompetition = () => request('/competition', 'GET', { pageNum: 1, pageSize: 1000 })

/**
 * 根据typeid获取比赛信息
 * @param {Number} typeId
 */
export const getCompsByType = (typeId) => request(`/competition/byType/${ typeId }`, 'GET')

/**
 * 根据id获取比赛信息
 */
export const getCompetitionDetail = (id) => request(`/competition/${ id }`, 'GET', {})

/**
 * 获取项目的比赛或者课程type
 */
export const getCompCourseType = () => request(`/competition/type`, 'GET')
